load("@io_bazel_rules_go//go:def.bzl", "go_library")

go_library(
    name = "poly1305",
    srcs = [
        "bits_compat.go",
        "bits_go1.13.go",
        "mac_noasm.go",
        "poly1305.go",
        "sum_amd64.go",
        "sum_amd64.s",
        "sum_generic.go",
        "sum_ppc64le.go",
        "sum_ppc64le.s",
        "sum_s390x.go",
        "sum_s390x.s",
    ],
    importmap = "github.com/cockroachdb/cockroach/vendor/golang.org/x/crypto/poly1305",
    importpath = "golang.org/x/crypto/poly1305",
    visibility = ["//visibility:public"],
    deps = select({
        "@io_bazel_rules_go//go/platform:s390x": [
            "//vendor/golang.org/x/sys/cpu",
        ],
        "//conditions:default": [],
    }),
)
